package A01File;

import java.io.File;
import java.io.IOException;

public class FileDemo4 {
    public static void main(String[] args) throws IOException {
        File file1 = new File("D:\\File\\aa.txt");
        boolean b = file1.createNewFile();
        System.out.println(b);

        File file2 = new File("D:\\File\\aaa");
        System.out.println(file2.mkdirs());


        File file3 = new File("D:\\File");
        File[] files = file3.listFiles();
        for (File file : files) {
            System.out.println(file);
        }
    }
}
